package com.ac.dao;

import java.io.Serializable;
import java.util.List;

import com.ac.entity.pagination.Page;

public interface HibernateBaseDao <X> {
	
	
	
	@SuppressWarnings("unchecked")
	public Page getPageBysql(String sqlCount,String sqlInfo, List sqlCountParameters,List sqlInfoParameters,int currentPage,Class resultListClass);
	
	
	
	public Object getObject(Object o);
	
	public X getObjectByKey(Class<X> c,Serializable id);
	
	public Page getPageBySimpleHQL(final String hql,int offset);
	
	
	public void delete(Object o);
	public void saveOrUpdate(Object o);
	
	
	public List getAllList(Class c);
	
	
	public Object getObject(String sql,Class resultListClass);
}
